Update Moment.js from 2.8.3 to 2.8.4
[lhc/web/wiklou.git] / resources / lib / moment / locale / it.js
1 // moment.js locale configuration
2 // locale : italian (it)
3 // author : Lorenzo : https://github.com/aliem
4 // author: Mattia Larentis: https://github.com/nostalgiaz
5
6 (function (factory) {
7 if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
11 } else {
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13 }
14 }(function (moment) {
15 return moment.defineLocale('it', {
16 months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
17 monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
18 weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
19 weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
20 weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
21 longDateFormat : {
22 LT : 'HH:mm',
23 LTS : 'LT:ss',
24 L : 'DD/MM/YYYY',
25 LL : 'D MMMM YYYY',
26 LLL : 'D MMMM YYYY LT',
27 LLLL : 'dddd, D MMMM YYYY LT'
28 },
29 calendar : {
30 sameDay: '[Oggi alle] LT',
31 nextDay: '[Domani alle] LT',
32 nextWeek: 'dddd [alle] LT',
33 lastDay: '[Ieri alle] LT',
34 lastWeek: function () {
35 switch (this.day()) {
36 case 0:
37 return '[la scorsa] dddd [alle] LT';
38 default:
39 return '[lo scorso] dddd [alle] LT';
40 }
41 },
42 sameElse: 'L'
43 },
44 relativeTime : {
45 future : function (s) {
46 return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
47 },
48 past : '%s fa',
49 s : 'alcuni secondi',
50 m : 'un minuto',
51 mm : '%d minuti',
52 h : 'un\'ora',
53 hh : '%d ore',
54 d : 'un giorno',
55 dd : '%d giorni',
56 M : 'un mese',
57 MM : '%d mesi',
58 y : 'un anno',
59 yy : '%d anni'
60 },
61 ordinalParse : /\d{1,2}º/,
62 ordinal: '%dº',
63 week : {
64 dow : 1, // Monday is the first day of the week.
65 doy : 4 // The week that contains Jan 4th is the first week of the year.
66 }
67 });
68 }));